//
//  LYLanguageManager.swift
//  LYOnlineBanking
//
//  Created by 李永彬 on 2025/7/19.
//

import Foundation

class LYLanguageManager {
    static let shared = LYLanguageManager()
    private init() {}
    var currentLanguageCode: String {
        if appCountryEnv == .indonesia {
            return "id"
        }
        return "en"
    }

    /// 获取简化的语言代码（只取前两位）
    var simpleLanguageCode: String {
        return String(currentLanguageCode.prefix(2))
    }
}
